<div class="add_new_article"><a href="/st_add_news">Thêm Bài Viết</a></div>
<article class="module width_3_quarter">
    <header>
    </header>

    <div class="tab_container">
        <div id="table_content" class="tab_content">
            <table class="tablesorter" cellspacing="0"> 
                <thead> 
                    <tr> 
                        <th style="width:5%;">STT</th> 
                        <th style="width:25%;">Tên bài viết</th> 
                        <th style="width:30%;">Mô tả ngắn</th> 
                        <th style="width:15%;">Ngày viết</th> 
                        <th style="width:15%;">Nhãn</th>
                        <th style="width:10%;"></th>
                    </tr> 
                </thead> 
                <tbody> 
                    <?php
                    for($i=0; $i<count($listNews); $i++){
                    ?>
                    <tr>
                        <td style="text-align:center"><?php echo ($pageIndex - 1)*10 + $i + 1; ?></td> 
                        <td><?php echo $listNews[$i]->news_title; ?></td> 
                        <td><?php echo $listNews[$i]->short_desc; ?></td> 
                        <td style="text-align:center"><?php echo $listNews[$i]->publish_date; ?></td> 
                        <td style="text-align:center">
                            <?php
                            $tag = $listNews[$i]->news_tag;
                            $arrTag = explode(",", $tag);
                            $html = "";
                            for($j=0; $j<count($arrTag)-1; $j++){
                                $html .= "<a href='#'>" . $arrTag[$j] . "</a> , ";
                            }
                            $html .= "<a href='#'>" . $arrTag[count($arrTag)-1] . "</a>";
                            echo $html;
                            ?>
                        </td> 
                        <td style="text-align:center">
                            <a href="/st_update_news?id=<?php echo $listNews[$i]->news_id; ?>"><img src="/static/images/icon/icn_edit.png" title="Chỉnh sửa" /></a>&nbsp;&nbsp;&nbsp;
                            <a href="javascript:;" onclick="BE.deleteNews(<?php echo $listNews[$i]->news_id . ",'" . $listNews[$i]->news_title . "'";?>)"><img src="/static/images/icon/icn_trash.png" title="Xóa" /></a>
                        </td>
                    </tr>
                    <?php
                    }
                    ?> 
                </tbody> 
            </table>
        </div><!-- end of #tab1 -->
    </div><!-- end of .tab_container -->
</article><!-- end of content manager article -->
<div class="clear"></div>
<p style="text-align: center; margin-top: 25px;">
    <?php echo $paging; ?>
</p>